How to build gnu `libiconv` on & for windows?

Posted by claws on Stack Overflow See other posts from Stack Overflow or by claws
Published on 2010-04-28T21:57:10Z Indexed on 2010/04/28 22:07 UTC
Read the original article Hit count: 546

Hello,

I want to build a static library (*.LIB file) GNU libiconv on windows to be used with other libraries in Visual C++. Other libraries I'm using are built with "MultiThreaded DLL" (/MD) Runtime option. So, I need to build libiconv with the same option.

Problem is the libiconv uses GNU build system and I want to compile with /MD option. You can see the source structure of libiconv here: http://cvs.savannah.gnu.org/viewvc/libiconv/?root=libiconv

Actually, Mr. Zlatkovic maintains the windows port of GNU libiconv for libxml2

you can see them here:

ftp://xmlsoft.org/libxml2/win32/iconv-1.9.2.win32.zip

ftp://xmlsoft.org/libxml2/win32/iconv-1.9.2.win32.zip

I cannot use his port. I need to build from the latest version of libiconv-1.13. I wonder how this guy has ported it? Can some one please tell me how to build *.lib from this and compile it using MSVC?

© Stack Overflow or respective owner

Related posts about cross-compiling

Related posts about linux